﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UNSWThink
{
   /// <summary>
   /// Object that represents the Enquiry entry in the database
   /// </summary>
   public class Enquiry
   {
      private int id;
      private int classID;
      private string description;

      /// <summary>
      /// Default constructor
      /// </summary>
      public Enquiry()
      {
         id = 0;
         classID = 0;
         description = String.Empty;
      }

      /// <summary>
      /// Alternative constructor
      /// </summary>
      /// <param name="id">
      /// ID of the record
      /// </param>
      /// <param name="classID">
      /// ID of the related class record
      /// </param>
      /// <param name="description">
      /// Description of the enquiry
      /// </param>
      public Enquiry(int id, int classID, string description)
      {
         this.id = id;
         this.classID = classID;
         this.description = description;
      }

      /// <summary>
      /// Gets or sets the ID
      /// </summary>
      public int ID
      {
         get
         {
            return id;
         }
         set
         {
            id = value;
         }
      }

      /// <summary>
      /// Gets or sets the class ID
      /// </summary>
      public int Class
      {
         get
         {
            return classID;
         }
         set
         {
            classID = value;
         }
      }

      /// <summary>
      /// Gets or sets the description
      /// </summary>
      public string Description
      {
         get
         {
            return description;
         }
         set
         {
            description = value;
         }
      }
   }
}
